package zisu.netty.practice.netty.my;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2020/8/4 9:29
 */
public class MyClientInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ChannelPipeline pipeline = ch.pipeline();
        pipeline.addLast(new MyClientHandler());
        pipeline.addLast(new HeartBeatReqHandler());
    }


}
